{include file="admin/public/header" /}

{block name="body"}
<div class="main-box clearfix" style="padding:10px;">
	<header class="main-box-header clearfix">
		<div class="ibox-title">
            <h5>勾子列表</h5>
           <div class="ibox-tools">
                <a class="btn btn-primary btn-xs" href="{:url('edithook')} ">新 增</a>
            </div>
        </div>

	</header>
	<div class="main-box-body clearfix">
		<div class="table-responsive clearfix">
			<table class="table table-hover">
				<thead>
					<tr>
						<th>
					
                             <input class="checkbox check-all chooseall" type="checkbox"></th>
						<th>ID</th>
						<th>名称</th>
						<th>描述</th>
						<th>类型</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<form action="" class="cmzForm">
					{volist name="list" id="item"}
					<tr>
						<td><input class="ids row-selected" type="checkbox" classs="checkbox1" name="id" value="{$item['id']}"></td>
						<td>{$item['id']|default=0}</td>
						<td>{$item['name']}</td>
						<td>{$item['description']}</td>
						<td> <a class="btn btn-default btn-xs"><?php if($item['type']=="1"){ echo "视图";}else{ echo "控制器";} ?></a>  </td>
						<td>
							<a href="{:url('edithook?id='.$item['id'])}" class="btn btn-success btn-xs">编辑</a>
							<!-- <a href="{:url('delhook?id='.$item['id'])}" class="confirm ajax-get btn btn-danger btn-xs">删除</a> -->
						</td>
					</tr>
					{/volist}
				</form>
				</tbody>
			</table>
			{$page}
		</div>
		<div class="mod-table-foot" >
	        <a class="btn btn-danger cmzdelmore"  where="id" table="{:encode('hooks')}">删除</a>

	        <!-- <a class="btn btn-info cmzsort" table="bNnmZYf5aMWT5hklZXg6f918e" where="id" >排序</a> -->
	    </div>
	</div>
</div>
{/block}
{include file="admin/public/footer" /}
